package com.jinduplan.planmanager.mvp.contract

import com.cxz.kotlin.baselibs.mvp.IModel
import com.cxz.kotlin.baselibs.mvp.IPresenter
import com.cxz.kotlin.baselibs.mvp.IView
import com.jinduplan.planmanager.bean.*
import io.reactivex.rxjava3.core.Observable

/**
 * @author admin
 * @date 2018/11/20
 * @desc
 */
interface ProjectUploadContract {

    interface View : IView {
        fun setProjectListData(projectData: ProjectListBean)
    }

    interface Presenter : IPresenter<View> {
        fun getProjectList(page: Int, limit: Int)
    }

    interface Model : IModel {
        fun getProjectList(
            page: Int,
            limit: Int
        ): Observable<HttpResult<ProjectListBean>>
    }

}